#!/usr/local/bin/python3

class Log(object):
    def __inti__(self, prefix, is_logging = False, log_function = print):
        self.log_function = log_function
        self.is_logging = is_logging
        self.prefix = prefix
        
    def log(arg):
        if self.is_logging:
            self.log_function(self.prefix + ' : ' + arg)
        